package first.group.ssh;

import first.group.ssh.encrypt.Encryption;
import first.group.ssh.hostkey.HostKeyAlgorithm;
import first.group.ssh.keyexchange.KeyExchangeMethod;
import first.group.ssh.mac.MacAlgorithm;

public record CipherSuite(
        KeyExchangeMethod keyExchangeMethod,
        HostKeyAlgorithm hostKeyAlgorithm,
        Encryption clientToServerEncryption,
        Encryption serverToClientEncryption,
        MacAlgorithm clientToServerMac,
        MacAlgorithm serverToClientMac) {
    @Override
    public String toString() {
        return "CipherSuite[keyExchangeMethod=" + keyExchangeMethod.getName() +
                ", hostKeyAlgorithm=" + hostKeyAlgorithm.getName() + 
                ", clientToServerEncryption=" + clientToServerEncryption.getName() +
                ", serverToClientEncryption=" + serverToClientEncryption.getName() +
                ", clientToServerMac=" + clientToServerMac.getName() +
                ", serverToClientMac=" + serverToClientMac.getName() + "]";
    }
}
